package com.usian.cousemer.feign;

import com.usian.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("nacos-provider")
public interface Userfeign {
    @GetMapping("getUserById/{id}")
    User getUser(@PathVariable Integer id);
    @GetMapping("getUserById2")
    User getUser(@RequestParam Integer id,@RequestParam String nam);
}
